import 'package:flutter/material.dart';

class ElevatedButtonWidget extends StatelessWidget {
  final VoidCallback? onPressed;
  final String? title;
  final Color? textColor;
  final Color? backgroundColor;
  final double? height;
  final double? radius;

  const ElevatedButtonWidget({
    super.key,
    this.onPressed,
    this.title,
    this.backgroundColor = Colors.red,
    this.textColor = Colors.white,
    this.height = 36,
    this.radius = 4,
  });

  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
      onPressed: onPressed,
      style: ElevatedButton.styleFrom(
        backgroundColor: backgroundColor,
        foregroundColor: textColor,
        minimumSize: Size(double.infinity, height!),
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(radius!),
        ),
        padding: EdgeInsets.symmetric(vertical: 0),
      ),
      child: Text('$title'),
    );
  }
}
